1 <?php include ( "../inc/connect.inc.php" ); ?>
2 <?php
3 ob_start();
4 session_start();

5 if
(!isset($_SESSION['user_login'])) {
6     $user =
"";
7 }

8 else
{
9     $user = $_SESSION[
'user_login'];
10     $result = mysql_query(
"SELECT * FROM user WHERE id='$user'");
11         $get_user_email = mysql_fetch_assoc($result);
12             $uname_db = $get_user_email[
'firstName'];
13 }
14 ?>
15
16 <!DOCTYPE html>
17 <html>
18 <head>
19     <title>SAREE</title>
20     <link rel=
"stylesheet" type="text/css" href="../css/style.css">
21     <meta name=
"viewport" content="width=device-width, initial-scale=1">
22 </head>
23 <body>
24     <?php include (
"../inc/mainheader.inc.php" ); ?>
25     <div
class="categolis">
26         <table>
27             <tr>
28                 <th>
29                     <a href=
"saree.php" style="text-decoration: none;color: #fff;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Saree</a>
30                 </th>
31                 <th><a href=
"ornament.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Ornament</a></th>
32                 <th><a href=
"watch.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Watch</a></th>
33                 <th><a href=
"perfume.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Perfume</a></th>
34                 <th><a href=
"hijab.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Hijab</a></th>
35                 <th><a href=
"tshirt.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #24bfae;border-radius: 12px;">T-Shirt</a></th>
36                 <th><a href=
"footwear.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">FootWear</a></th>
37                 <th><a href=
"toilatry.php" style="text-decoration: none;color: #ddd;padding: 4px 12px;background-color: #c7587e;border-radius: 12px;">Toilatry</a></th>
38             </tr>
39         </table>
40     </div>
41     <div style=
"padding: 30px 120px; font-size: 25px; margin: 0 auto; display: table; width: 98%;">
42         <div>
43         <?php
44             $getposts = mysql_query(
"SELECT * FROM products WHERE available >='1' AND item ='tshirt' ORDER BY id DESC LIMIT 10") or die(mysql_error());
45                     
if (mysql_num_rows($getposts)) {
46                     echo
'<ul id="recs">';
47                     
while ($row = mysql_fetch_assoc($getposts)) {
48                         $id = $row[
'id'];
49                         $pName = $row[
'pName'];
50                         $price = $row[
'price'];
51                         $description = $row[
'description'];
52                         $picture = $row[
'picture'];
53                         
54                         echo
'
55                             <ul style=
"float: left;">
56                                 <li style=
"float: left; padding: 0px 25px 25px 25px;">
57                                     <div
class="home-prodlist-img"><a href="view_product.php?pid='.$id.'">
58                                         <img src=
"../image/product/tshirt/'.$picture.'" class="home-prodlist-imgi">
59                                         </a>
60                                         <div style=
"text-align: center; padding: 0 0 6px 0;"> <span style="font-size: 15px;">'.$pName.'</span><br> Price: '.$price.' Tk</div>
61                                     </div>
62                                     
63                                 </li>
64                             </ul>
65                         
';
66
67                         }
68                 }
69         ?>
70             
71         </div>
72     </div>
73 </body>
74 </html>


Gõ tìm kiếm nhanh...